package com.redis.client.util;

import javafx.scene.control.Alert;

/**
 * @author hetao
 */
public class DialogUtil {

    public static void showDialog(String header, String content) {
        Alert alert = new Alert(Alert.AlertType.ERROR);
        alert.setTitle("出错");
        alert.setHeaderText(header);
        alert.setContentText(content);
        alert.show();
    }

    public static void showDialog(String content) {
        Alert alert = new Alert(Alert.AlertType.ERROR);
        alert.setTitle("出错");
        alert.setHeaderText("出错了");
        alert.setContentText(content);
        alert.show();
    }
}
